package com.ruoyi.web.controller.applet;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.BdmGoodclassify;
import com.ruoyi.system.service.IBdmGoodclassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 商品分类Controller
 * 
 * @author ruoyi
 * @date 2024-12-13
 */
@RestController
@RequestMapping("/applet/goodclassify")
public class AppletGoodclassifyController extends BaseController
{
    @Autowired
    private IBdmGoodclassifyService bdmGoodclassifyService;

    /**
     * 查询商品分类列表
     */
    @GetMapping("/list")
    public TableDataInfo list(BdmGoodclassify bdmGoodclassify)
    {
        startPage();
        List<BdmGoodclassify> list = bdmGoodclassifyService.selectBdmGoodclassifyList(bdmGoodclassify);
        return getDataTable(list);
    }


}
